#include"Server.hpp"
#include <memory>


int main(int argc, char*argv[])
{
	if(argc!=2)
	{
		std::cerr<<"Usage:"<<argv[0]<<"local port"<<std::endl;
		exit(0);
	}
//	Server s(8888);
	uint16_t port =stoi(argv[1]);
	std::unique_ptr<Server> sp = std::make_unique<Server>(port);
	sp->init();
	sp->start();
	return 0;

};
